import request from '@/router/axios';

export const getQuestionList = (params) => {
  return request({
    url: '/api/videoanswer/question/list',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getDetailQuestion = (id) => {
  return request({
    url: '/api/videoanswer/question/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const delQuestion = (ids) => {
  return request({
    url: '/api/videoanswer/question/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/videoanswer/question/submit',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/videoanswer/question/submit',
    method: 'post',
    data: row
  })
}

